#!/usr/bin/env python
##coding:utf8

from threading import Thread
import time

class TestThread():
    def print_time(self,threadName):
        count = 0
        while count<5:
            count += 1
            print threadName
    def show_thread(self):
        try:
            Thread(target = self.print_time, args = ['Thread1']).start()
            Thread(target = self.print_time, args = ['Thread2']).start()
        except Exception, e:
            print "Error:unable to start thread" 